package org.paradise.dms.dao.impl;

import java.sql.Connection;
import java.sql.PreparedStatement;

import org.apache.log4j.Logger;
import org.paradise.dms.pojo.BaseException;
import org.paradise.dms.pojo.DeliverStation;
import org.paradise.dms.util.DeliverStationUtil;

import com.dheaven.framework.dao.DaoException;


/**
 * 
 * Description: 发件箱
 * 
 * @version1.1 李韦 
 * @return
 */


public class DeliverStationDaoImpl extends  BaseDaoImpl<DeliverStation>{
	private static Logger log = Logger.getLogger(DeliverStationDaoImpl.class);
	
	public DeliverStationDaoImpl() {
		super.setTableName(DataTable.getDataTableName("deliverstation"));
	}
	/**
	 * 
	 * Description: 增加一条发送状态
	 * 
	 * @Version1.0李韦创建
	 * @throws DaoException
	 */
//	public void insertMessage(DeliverStation deliverStation) throws DaoException {
//		this.create(deliverStation);
//		log.info("成功插入发送状态************");
//	}
	@Override
	protected PreparedStatement getAdd(Connection conn, DeliverStation t,String tableName)
			throws BaseException {
		return DeliverStationUtil.getInsertPreparedStatement(conn, t,tableName);
	}
	
}